package com.rm.dubbo.demo;

import com.alibaba.dubbo.config.annotation.Reference;
import com.rm.dubbo.demo.api.AnnotationDemoApi;
import org.springframework.stereotype.Component;

/**
 * @ProjectName: dubbo-annotation-parent
 * @Auther: GERRY
 * @Date: 2019/1/16 15:30
 * @Description:
 */
@Component
public class ApiDemoTest {
    @Reference(async=true) // 启用消费端异步调用
    private AnnotationDemoApi demoApi;

    public String login(String account, String password) {
        return  demoApi.doLogin(account, password);
    }
}
